<!DOCTYPE html>

<html>
	<head>
		<link rel="stylesheet" href="../../../themes/themeroller/default-theme/ui.all.css" type="text/css" media="screen" />

		<script src="../../../lib/jquery/jquery.js" type="text/javascript" charset="utf-8"></script>

		<script src="../../../src/defaults.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../../src/core.js" type="text/javascript" charset="utf-8"></script>
		
		<style type="text/css" media="screen">
			body {
				font-size: 14px;
				padding: 5px;
				font-family: "Trebuchet MS", "Helvetica", "Arial",  "Verdana", "sans-serif";
			}

			p {
				margin: 30px 10px;
			}
		</style>
		
	</head>

	<body>

		<h1>Nokia.MiniView - Sample</h1>

		<br/><br/>

		<div id="miniview1"></div>

		<label>Text only</label>

		<div id="miniview2"></div>

		<label>Hybrid</label>

		<div id="miniview3"></div>

		<label>Landscpae image</label>

		<div id="miniview4"></div>

		<label>Multiple images</label>

		<div id="miniview5"></div>

		<label>Hybrid (Horizontal)</label>

		<div id="miniview6"></div>

		<br style="clear: both;" />
		<br style="clear: both;" />

		<br /><br />

		<script type="text/javascript" charset="utf-8">

			var init = function() {
				
				window.miniview1 = new Nokia.MiniView({
					element: '#miniview1',
					content: 'Lorem Ipsum Dolor Lorem Ipsum Dolor Lorem Ipsum Dolor Lorem Ipsum Dolor Lorem Ipsum Dolor'
				});

				window.miniview2 = new Nokia.MiniViewHybrid({
					element: '#miniview2',
					image: 'images/carousel01.jpg',
					text: 'Lorem Ipsum Dolor Lorem Ipsum Dolor Lorem Ipsum Dolor Lorem Ipsum',
				});

				window.miniview3 = new Nokia.MiniViewLandscapeImage({
					element: '#miniview3',
					image: 'images/carousel02.jpg',
				});

				window.miniview4 = new Nokia.MiniViewMultipleImages({
					element: '#miniview4',
					images: [
						'images/carousel01.jpg',
						'images/carousel02.jpg',
						'images/carousel03.jpg',
						'images/carousel04.jpg'
					]
				});

				window.miniview5 = new Nokia.MiniViewHybridHorizontal({
					element: '#miniview5',
					image: 'images/carousel05.jpg',
					text: 'Lorem Ipsum Dolor Lorem Ipsum Dolor Lorem',
				});

				window.miniview6 = new Nokia.MiniViewGrid({
					element: '#miniview6',
					rows: [
						{
							image: 'images/carousel01.jpg',
							text: 'Lorem Ipsum Dolor Lorem Ipsum Dolor Lorem Ipsum',
						},
						{
							image: 'images/carousel02.jpg',
							text: 'Lorem Ipsum Dolor Lorem Ipsum Dolor Lorem Ipsum',
						}
					]
				});
				
				/*
				 * Hide splash when its all done.
				*/
				
				Nokia.hideSplash();

			};
			
			/*
			 * Show splash while loading components.
			*/
				
			Nokia.showSplash('<span>loading</span>');
			
			Nokia.use('miniview', init);

		</script>

	</body>
</html>